﻿using Awsc.DataAcquisitionSys.Core.Models.POCO;
using Microsoft.EntityFrameworkCore;

namespace Awsc.DataAcquisitionSys.Core.Databases
{
    public class AppDbContext : DbContext
    {
        public AppDbContext(DbContextOptions<AppDbContext> options)
            : base(options)
        {
        }

        public DbSet<Mission> Missions { get; set; }
        public DbSet<AlarmRuleModel> AlarmRules { get; set; }
        public DbSet<WearPart> WearParts { get; set; }


        protected override void OnModelCreating(ModelBuilder modelBuilder)
        {
            base.OnModelCreating(modelBuilder);
            modelBuilder.ApplyConfigurationsFromAssembly(this.GetType().Assembly);
            // Configure your entity mappings here
        }
        // Define DbSet properties for your entities
        // public DbSet<YourEntity> YourEntities { get; set; }
        // Add more DbSet properties as needed
    }
}
